<%@page import="com.wframe.framework.util.UploadUtil"%>
<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib uri="/WEB-INF/page-base.tld" prefix="w"%>
<%String path=request.getContextPath(); request.setAttribute("fileserver", UploadUtil.getConfig().getDownserver());%>

<div class="easyui-panel ui-toolBar" border="false" data-options="doSize:false">
	<a href="javascript:;" class="easyui-linkbutton" plain="true" onclick="add()">添加主推商品</a>
	<a href="javascript:;" class="easyui-linkbutton" plain="true" onclick="del()" style="width:50px;">删除</a>
</div>
<div class="ui_line" style="margin-top:10px"></div>
<form id="dataForm" action="/products/ProductClassPage@featuredlist.page" method="post">
<w:hidden bind="bean.code"/>
<table class="ui-table" width="100%" cellpadding="1" cellspacing="1" data-options="showPage:true,
																							pageNum:<w:write bind="pageNum"/>,
																							pageSize:<w:write bind="pageSize_"/>,
																							total:<w:write bind="pagination.totalCount"/>,form:'dataForm'">
	<thead>
		<tr class="ui_th">
			<td width="35" align="center"><input type="checkbox" onclick="$selAllTbBoxs(this)"></td>
			<td width="40">ID</td>
			<td width="90">商品图片</td>
			<td width="160">商品编号</td>
			<td>商品名称</td>
		</tr>
	</thead>
	<tbody>
	<w:iterate id="info" bind="resultList_">
		<tr class="ui_td">
			<td align="center"><input type="checkbox" name="primaryKey_" value="<w:write bind="#info.fid"/>"></td>
			<td><w:write bind="#info.id"/></td>
			<td><w:notEqual bind="#info.photoview" value=""><img src="${fileserver }<w:write bind="#info.photoview"/>" style="width:40px;height:30px;"></w:notEqual></td>
			<td><w:write bind="#info.productcode"/></td>
			<td><w:write bind="#info.fullname"/></td>
		</tr>
	</w:iterate>
	</tbody>
</table>
</form>